﻿using Yunli.Project.Entities;

namespace Yunli.Test
{
    internal class Program
    {
        private static void Main(string[] p_args)
        {
            var prj = new ProjectEntity
                          {
                              Name = "PI3000 Mobile"
                          };
            prj.ChildTaskChanged += _prj_ChildTaskChanged;



            var t_1 = new TaskEntity
                          {
                              Name = "1 服务端开发",
                              IsGroup = true
                          };
            prj.AddTask(t_1);
            var t_1_1 = new TaskEntity
                            {
                                Name = "1.1 基础框架"
                            };
            t_1.AddTask(t_1_1);




            var t_2 = new TaskEntity
                          {
                              Name = "2 数据同步",
                              IsGroup = true
                          };
            prj.AddTask(t_2);
            var t_2_1 = new TaskEntity
                            {
                                Name = "2.1 数据上传"
                            };
            t_2.AddTask(t_2_1);
            var t_2_2 = new TaskEntity
                            {
                                Name = "2.2 数据下载"
                            };
            t_2.AddTask(t_2_2);





            //t_2_2.StartTime = DateTime.Now;
            //t_2_2.StartTime = DateTime.Now.AddDays(-1);
            //_2_2.StartTime = DateTime.MinValue;
        }






        static void _prj_ChildTaskChanged(object sender, TaskChangedEventArgs e)
        {

        }
    }
}